Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Informer: Use unstructured #610

Merged
merged 3 commits into from
May 31, 2018
Merged

Informer: Use unstructured #610

merged 3 commits into from
May 31, 2018

Conversation

gaocegege
Copy link
Member

@gaocegege gaocegege commented May 29, 2018

Close #561

Ref #561 (comment)

This PR uses unstructured informer instead of generated typed informer to allow wrong spec.

It is a huge change, and we have to update the dep from kubernetes 1.8 to 1.9 to support the change. And the test cases also have some corresponding updates.

cec8efe is the actual changes and other commits are about vendor.


This change is Reviewable

Signed-off-by: Ce Gao <gaoce@caicloud.io>
Signed-off-by: Ce Gao <gaoce@caicloud.io>
@gaocegege gaocegege changed the title WIP: Informer: Use unstructured Informer: Use unstructured May 30, 2018
Signed-off-by: Ce Gao <gaoce@caicloud.io>
@kubeflow kubeflow deleted a comment from TravisBuddy May 30, 2018
@kubeflow kubeflow deleted a comment from TravisBuddy May 30, 2018
@kubeflow kubeflow deleted a comment from coveralls May 30, 2018
@gaocegege
Copy link
Member Author

/assign @jlewi

@gaocegege
Copy link
Member Author

We should add e2e test to test the feature. it is a todo task.

*/

// Note(CPH): this file is copied form k8s.io/kubernetes/pkg/controller
// We should not import the huge package k8s.io/kubernetes/pkg
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code is written by our own thus we use our copyright holder.

@jlewi
Copy link
Contributor

jlewi commented May 31, 2018

This is great! Thank you so much for fixing this bug! So glad we have a fix for 0.2.

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jlewi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gaocegege
Copy link
Member Author

FYI, this is for v1alpha2, I believe that it will also be a huge change to implement it on v1alpha1. We are relying on the typed informer heavily.

@gaocegege
Copy link
Member Author

/retest

@gaocegege gaocegege mentioned this pull request May 31, 2018
@jlewi
Copy link
Contributor

jlewi commented May 31, 2018

@gaocegege Yup; I was expecting that we would only fix this in v1alpha2; I think its perfectly fine to only fix things in the new version.

@k8s-ci-robot k8s-ci-robot merged commit a9294ce into kubeflow:master May 31, 2018
@gaocegege gaocegege deleted the informer branch May 31, 2018 06:13
yph152 pushed a commit to yph152/tf-operator that referenced this pull request Jun 18, 2018
* vendor: Update

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* gopkg: Update

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* controller: Use unstructured informer

Signed-off-by: Ce Gao <gaoce@caicloud.io>
jetmuffin pushed a commit to jetmuffin/tf-operator that referenced this pull request Jul 9, 2018
* vendor: Update

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* gopkg: Update

Signed-off-by: Ce Gao <gaoce@caicloud.io>

* controller: Use unstructured informer

Signed-off-by: Ce Gao <gaoce@caicloud.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants